from huggingface_hub import snapshot_download
import os

os.environ['HTTP_PROXY'] = 'http://127.0.0.1:15236'
os.environ['HTTPS_PROXY'] = 'http://127.0.0.1:15236'

# 下载 segmentation 模型
#snapshot_download(repo_id="pyannote/segmentation-3.0", use_auth_token="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", local_dir="./models/segmentation3")

# 下载 overlapped-speech-detection 模型
#snapshot_download(repo_id="pyannote/overlapped-speech-detection", use_auth_token="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", local_dir="./models/overlappedSpeechDetection")



snapshot_download(repo_id="pyannote/segmentation", use_auth_token="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", local_dir="./models/segmentation")


print("lz")